<?php
/**
* phpCan - http://idc.anavallasuiza.com/
*
* phpCan is released under the GNU Affero GPL version 3
*
* More information at license.txt
*/

defined('ANS') or die();

$Config->load('languages.php', 'scene', 'scene_');

$download_languages = $languages = array();

foreach ($Config->scene_languages['availables'] as $language => $active) {
	$languages_files = glob(filePath('scene/languages|'.$language.'/*.po'));

	if ($languages_files) {
		foreach ($languages_files as $each) {
			$download_languages[$language][] = str_replace('.po', '', basename($each));
		}
	}

	$languages[$language] = $language;
}
?>